package wjx.ssm.dao;

import java.util.List;

import wjx.ssm.bean.Student;
import wjx.ssm.query.StudentQuery;

public interface StudentDao {
	//简单关联查询 出现n+1
	Student getById_simple(int id);
	//复制关联查询，只会发出一条sql（join方式）
	Student getById_complex(int id);
	List<Student> listStudentByTeacher(int teacherId);
	
	List<Student> custemerQuery(StudentQuery stuQuery);
	
	void save(Student stu);
	
	void update(Student stu);
}
